# Contributor: Michał Polański <michal@polanski.me>
# Maintainer:
pkgname=oha
pkgver=0.4.6
pkgrel=0
pkgdesc="HTTP load generator, inspired by rakyll/hey with tui animation"
url="https://github.com/hatoo/oha"
# s389x, mips, mips64: limited by cargo
# armhf, armv7: ftbfs
arch="all !s390x !mips !mips64 !armhf !armv7"
license="MIT"
makedepends="cargo openssl-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/hatoo/oha/archive/v$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/oha "$pkgdir"/usr/bin/oha
}

sha512sums="
9d2b8306c5663daca2c3b55a2c0e313bb72a42044ef5ef56ab91dac44027e12b380b3a03b35b0bf6b6c28bf81a7789668cb9740264788ed7d83b078405b28310  oha-0.4.6.tar.gz
"
